package com.example.studentcompetitionplatform.mapper;

import com.example.studentcompetitionplatform.entity.Reviews;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReviewsMapper {
//新增
    //判断是否已经添加过
    Reviews selectReview(Reviews reviews);
    //新增评审
    Integer insertReview(Reviews reviews);
//删除
    Integer deleteReview(Reviews reviews);
//修改
    Integer editReview(Reviews reviews);
//分页数据
    //查询reviews_id的数据的总条数
    Integer findReviewsTotal(Integer reviewId);
    //
    List<Reviews> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("reviewId") Integer reviewId);
}
